<?php

namespace plugin\cms\app\validate;

use core\validate\ValidateBase;

class Category extends ValidateBase
{
    protected $rule =   [
        'mid'      => 'require|number',
        'title'    => 'require',
        'catetemp' => 'require',
        'pagetemp' => 'require',
        'pid'      => 'require|number',
        'siteid'   => 'require|number'
    ];

    protected $message  =   [
        'mid.require'      => '请选择模型 ',
        'title.require'    => '栏目名必填',
        'catetemp.require' => '请选择栏目模板',
        'pagetemp.require' => '请选择内容模板',
        'pid.require'      => '请选择父级',
        'siteid.require'   => '缺少站点信息',
        'mid.number'       => '模型格式不正确',
        'pid.number'       => '父级格式不正确',
        'siteid.number'    => '站点格式不正确',

    ];
}
